package com.ostraffel.recallvocabularybackend.DTO;

import java.util.Date;

public class Word {
    String id; // id
    String spell; // 拼写
    String ipa; // 音标
    String explication; //意思
    int proficiency; // 熟练度
    Date lastDate; // 上次复习时间
    String userId; // 用户id
    public Word(){}
    public String getId() {
        return id;
    }
    public void setId(String id) {
        this.id = id;
    }
    public String getSpell() {
        return spell;
    }
    public void setSpell(String spell) {
        this.spell = spell;
    }
    public String getIpa() {
        return ipa;
    }
    public void setIpa(String ipa) {
        this.ipa = ipa;
    }
    public String getExplication() {
        return explication;
    }
    public void setExplication(String explication) {
        this.explication = explication;
    }
    public int getProficiency() {
        return proficiency;
    }
    public void setProficiency(int proficiency) {
        this.proficiency = proficiency;
    }
    public Date getLastDate() {
        return lastDate;
    }
    public void setLastDate(Date lastTime) {
        this.lastDate = lastTime;
    }
    public String getUserId() {
        return userId;
    }
    public void setUserId(String userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("Word{");
        sb.append("id=").append(id);
        sb.append(", spell=").append(spell);
        sb.append(", ipa=").append(ipa);
        sb.append(", explication=").append(explication);
        sb.append(", proficiency=").append(proficiency);
        sb.append(", lastTime=").append(lastDate);
        sb.append(", userId=").append(userId);
        sb.append('}');
        return sb.toString();
    }
    
}
